import createAxios from '/@/utils/axios'
import { message } from '/@/api/controllerUrls'
export interface Message {
    userIds: string[]
    title: string
    message: string
}
/*
发送消息给所有人
*/
export function sendAllUser(data: Message) {
    return createAxios({
        url: message + 'sendAllUser',
        method: 'post',
        data: data,
    })
}
/*
发送消息给除了发送人的其他人
*/
export function sendOtherUser(data: Message) {
    return createAxios({
        url: message + 'sendOtherUser',
        method: 'post',
        data: data,
    })
}
/*
发送消息给某人
*/
export function sendUser(data: Message) {
    return createAxios({
        url: message + 'sendUser',
        method: 'post',
        data: data,
    })
}
